Hi Frank, A Spindle has to be configured as an axis and included in the Coordinated Motion System or as a "normal" Spindle and excluded from the Coordinated Motion system. In example #1 you configure the Spindle as an axis but then command it spinning so you get an error when you do a coordinated motion. Note a G1Z0 actually moves all X,Y, and A axes. In example #2 the Spindle is not part of the coordinated motion so when you move X and Z there is no problem. We need to have a means of determining which mode you are in. One way would be to explicitly switch modes with something two Special MCodes that would Notify KFLOP to switch modes. But maybe you are using Spindle on and off to switch modes (M3,M4,M5). M3 and M4 would automatically exclude A from the coordinate system. And M5
could automatically include it. You forgot to include your C:\Mach3\Kmotion\SpindleMach3DAC.c and C:\Mach3\Kmotion\NotifyMach3Start.c programs so we can see what you are trying to do. HTH Regards TK
| Group: DynoMotion |
Message: 6616 |
From: frank_19_88 |
Date: 1/30/2013 |
| Subject: Re: A axis and spindle at same channel |
Hi TK,
I replaced the "spindle program" with "notify.c"
At the visual basic part(of mach3) m3,m4 & m5 I added a notify function.
At the notify I only used 'Move(2,1000)' or 'Move(2,0)';
Do I have to run the sample "spindle program.c" also with mach3?
Or can I add the "exclude/include A" commands to my "notify.c" (what are the commands?)
I need the A command because I want to be able to turn the spindle head 180 deg. ( G92 A0, G1 A180 )
At the moment I can't send the "*.c" programs but I will do it as soon as posible.
With kind regards,
Frank
--- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
>
> Hi Frank,
>
> A Spindle has to be configured as an axis and included in the Coordinated Motion System or as a "normal" Spindle and excluded from the Coordinated Motion system.
>
> In example #1 you configure the Spindle as an axis but then command it spinning so you get an error when you do a coordinated motion. Note a G1Z0 actually moves all X,Y, and A axes.
>
> In example #2 the Spindle is not part of the coordinated motion so when you move X and Z there is no problem.
>
> We need to have a means of determining which mode you are in. One way would be to explicitly switch modes with something two Special MCodes that would Notify KFLOP to switch modes.
>
> But maybe you are using Spindle on and off to switch modes (M3,M4,M5). M3 and M4 would automatically exclude A from the coordinate system. And M5 could automatically include it.
>
> You forgot to include your C:\Mach3\Kmotion\SpindleMach3DAC.c and C:\Mach3\Kmotion\NotifyMach3Start.c programs so we can see what you are trying to do.
>
> HTH
> Regards
> TKÂ
>
>
>
>
> ________________________________
> From: frank_19_88
> To: DynoMotion@yahoogroups.com
> Sent: Monday, January 28, 2013 11:44 PM
> Subject: [DynoMotion] A axis and spindle at same channel
>
>
> Â
> Hi,
>
> When I activate A axis within kflop with:
> DefineCoordSystem(0,-1,1,2);
>
> And open Mach3 and send gcode:
> M3 S100 (spindle start spinning)
> Z0
> I get an error "buffer starved".(A axis disabled)
> If I send:
> M5
> z0
> The z axis move.
>
> When I change kflop to " DefineCoordSystem(0,-1,1,-1); " and send:
> M3 s100 (spindle start spinning)
> z0 (z axis moves)
>
> The A axis and Spindle are the same channel within the Kflop.(2)
> Last week it was working fine, but don't know what I did wrong.
>
> www.hoefon.nl/kflop/turn_xml.xml
> www.hoefon.nl/kflop/IntAnaloog.c
>
> With kind regards,
>
> Frank
>
|
|
| Group: DynoMotion |
Message: 6617 |
From: Tom Kerekes |
Date: 1/30/2013 |
| Subject: Re: A axis and spindle at same channel |
Hi Frank,
I don't really follow most of that.
Normally your Spindle C program would handle all the functionality without the need for CBasic M3 M4 M5 programs.
I don't understand why/where the Move(2,2000) Move(2,0) is needed.
Use the DefineCoordSystem command to includ/exclud the A axis.
Regards
TK
| Group: DynoMotion |
Message: 6618 |
From: tapiolarikka |
Date: 1/30/2013 |
| Subject: Re: A axis and spindle at same channel |
Hi Frank/Tom,
I hope you don't mind me jumping in on this, but I have this same thing ahead.
I think this could be:
In the Spindle.c that you are using:
case EX_SPINON:
DefineCoordSystem(0,1,2,-1);
if (Direction==0)
{
printf("Spindle CW ON\n");
}
else if (Direction==1)
{
printf("Spindle CCW ON\n");
}
break;
case EX_SPINOFF:
DefineCoordSystem(0,1,2,3);
// add homing routine for A-axis
printf("Spindle Stop\n");
break;
}
I can't test the above since I haven't found time to get my
KFlop connected.
I hope Tom corrects me if I'm wrong about this.
Rgds,
Tapio
--- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
>
> Hi Frank,
> Â
> I don't really follow most of that.
> Â
> Normally your Spindle C program would handle all the functionality without the need for CBasic M3 M4 M5 programs.
> Â
> I don't understand why/where the Move(2,2000) Move(2,0) is needed.Â
> Â
> Use the DefineCoordSystem command to includ/exclud the A axis.
> Â
> Regards
> TK
>
>
> ________________________________
> From: frank_19_88
> To: DynoMotion@yahoogroups.com
> Sent: Wednesday, January 30, 2013 5:52 AM
> Subject: [DynoMotion] Re: A axis and spindle at same channel
>
> Â
> Hi TK,
>
> I replaced the "spindle program" with "notify.c"
> At the visual basic part(of mach3) m3,m4 & m5 I added a notify function.
>
> At the notify I only used 'Move(2,1000)' or 'Move(2,0)';
>
> Do I have to run the sample "spindle program.c" also with mach3?
> Or can I add the "exclude/include A" commands to my "notify.c" (what are the commands?)
>
> I need the A command because I want to be able to turn the spindle head 180 deg. ( G92 A0, G1 A180 )
>
> At the moment I can't send the "*.c" programs but I will do it as soon as posible.
>
> With kind regards,
>
> Frank
>
> --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes wrote:
> >
> > Hi Frank,
> >
> > A Spindle has to be configured as an axis and included in the Coordinated Motion System or as a "normal" Spindle and excluded from the Coordinated Motion system.
> >
> > In example #1 you configure the Spindle as an axis but then command it spinning so you get an error when you do a coordinated motion.ÃÂ Note a G1Z0 actually moves all X,Y, and A axes.
> >
> > In example #2 the Spindle is not part of the coordinated motion so when you move X and Z there is no problem.
> >
> > We need to have a means of determining which mode you are in.ÃÂ One way would be to explicitly switch modes with something two Special MCodes that would Notify KFLOP to switch modes.
> >
> > But maybe you are using Spindle on and off to switch modes (M3,M4,M5).ÃÂ M3 and M4 would automatically exclude A from the coordinate system.ÃÂ And M5 could automatically include it.
> >
> > You forgot to include your C:\Mach3\Kmotion\SpindleMach3DAC.c and C:\Mach3\Kmotion\NotifyMach3Start.c programs so we can see what you are trying to do.
> >
> > HTH
> > Regards
> > TKÃÂ
> >
> >
> >
> >
> > ________________________________
> > From: frank_19_88
> > To: mailto:DynoMotion%40yahoogroups.com
> > Sent: Monday, January 28, 2013 11:44 PM
> > Subject: [DynoMotion] A axis and spindle at same channel
> >
> >
> > ÃÂ
> > Hi,
> >
> > When I activate A axis within kflop with:
> > DefineCoordSystem(0,-1,1,2);
> >
> > And open Mach3 and send gcode:
> > M3 S100 (spindle start spinning)
> > Z0
> > I get an error "buffer starved".(A axis disabled)
> > If I send:
> > M5
> > z0
> > The z axis move.
> >
> > When I change kflop to " DefineCoordSystem(0,-1,1,-1); " and send:
> > M3 s100 (spindle start spinning)
> > z0 (z axis moves)
> >
> > The A axis and Spindle are the same channel within the Kflop.(2)
> > Last week it was working fine, but don't know what I did wrong.
> >
> > www.hoefon.nl/kflop/turn_xml.xml
> > www.hoefon.nl/kflop/IntAnaloog.c
> >
> > With kind regards,
> >
> > Frank
> >
>
|
|
| Group: DynoMotion |
Message: 6619 |
From: Tom Kerekes |
Date: 1/30/2013 |
| Subject: Re: A axis and spindle at same channel |
Thanks Tapio,
Yes I would think that would work. But because he has a lathe without any Y axis the calls would be
to exclude A DefineCoordSystem(0,-1,1,2);
to include A DefineCoordSystem(0,-1,1,-1);
Regards TK
| Group: DynoMotion |
Message: 6621 |
From: tapiolarikka |
Date: 1/30/2013 |
| Subject: Re: A axis and spindle at same channel |
Hi again,
Having thought this some more I think including/excluding A solves half of the problem i.e. stops spindle movement from generating errors, but how about A movements generating Spindle movent errors?
Should there be definespindle_axis4 with exclude A and undefinespindle with include A? If there is no undefine available then maybe definespindle_axis5.
Also if there is side/sub-spindle or live tool separate m codes with associated user programs for activation would be in order (for ex M32,M42,M52)
Rgds,
Tapio
--- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
>
> Thanks Tapio,
>
> Yes I would think that would work. Â But because he has a lathe without any Y axis the calls would be
>
> to exclude A
> DefineCoordSystem(0,-1,1,2);
>
>
> to include A
> DefineCoordSystem(0,-1,1,-1);
>
>
> Regards
> TK
>
>
> ________________________________
> From: tapiolarikka
> To: DynoMotion@yahoogroups.com
> Sent: Wednesday, January 30, 2013 11:53 AM
> Subject: [DynoMotion] Re: A axis and spindle at same channel
>
>
> Â
>
>
> Hi Frank/Tom,
>
> I hope you don't mind me jumping in on this, but I have this same thing ahead.
>
> I think this could be:
>
> In the Spindle.c that you are using:
>
> case EX_SPINON:
> DefineCoordSystem(0,1,2,-1);
>
> if (Direction==0)
> {
> printf("Spindle CW ON\n");
> }
> else if (Direction==1)
> {
> printf("Spindle CCW ON\n");
> }
> break;
>
> case EX_SPINOFF:
> DefineCoordSystem(0,1,2,3);
> // add homing routine for A-axis
> printf("Spindle Stop\n");
> break;
> }
>
> I can't test the above since I haven't found time to get my
> KFlop connected.
>
> I hope Tom corrects me if I'm wrong about this.
>
> Rgds,
> Tapio
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
> >
> > Hi Frank,
> > ÃÂ
> > I don't really follow most of that.
> > ÃÂ
> > Normally your Spindle C program would handle all the functionality without the need for CBasic M3 M4 M5 programs.
> > ÃÂ
> > I don't understand why/where the Move(2,2000) Move(2,0) is needed.ÃÂ
> > ÃÂ
> > Use the DefineCoordSystem command to includ/exclud the A axis.
> > ÃÂ
> > Regards
> > TK
> >
> >
> > ________________________________
> > From: frank_19_88
> > To: DynoMotion@yahoogroups.com
> > Sent: Wednesday, January 30, 2013 5:52 AM
> > Subject: [DynoMotion] Re: A axis and spindle at same channel
> >
> > ÃÂ
> > Hi TK,
> >
> > I replaced the "spindle program" with "notify.c"
> > At the visual basic part(of mach3) m3,m4 & m5 I added a notify function.
> >
> > At the notify I only used 'Move(2,1000)' or 'Move(2,0)';
> >
> > Do I have to run the sample "spindle program.c" also with mach3?
> > Or can I add the "exclude/include A" commands to my "notify.c" (what are the commands?)
> >
> > I need the A command because I want to be able to turn the spindle head 180 deg. ( G92 A0, G1 A180 )
> >
> > At the moment I can't send the "*.c" programs but I will do it as soon as posible.
> >
> > With kind regards,
> >
> > Frank
> >
> > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes wrote:
> > >
> > > Hi Frank,
> > >
> > > A Spindle has to be configured as an axis and included in the Coordinated Motion System or as a "normal" Spindle and excluded from the Coordinated Motion system.
> > >
> > > In example #1 you configure the Spindle as an axis but then command it spinning so you get an error when you do a coordinated motion.ÃâàNote a G1Z0 actually moves all X,Y, and A axes.
> > >
> > > In example #2 the Spindle is not part of the coordinated motion so when you move X and Z there is no problem.
> > >
> > > We need to have a means of determining which mode you are in.ÃâàOne way would be to explicitly switch modes with something two Special MCodes that would Notify KFLOP to switch modes.
> > >
> > > But maybe you are using Spindle on and off to switch modes (M3,M4,M5).ÃâàM3 and M4 would automatically exclude A from the coordinate system.ÃâàAnd M5 could automatically include it.
> > >
> > > You forgot to include your C:\Mach3\Kmotion\SpindleMach3DAC.c and C:\Mach3\Kmotion\NotifyMach3Start.c programs so we can see what you are trying to do.
> > >
> > > HTH
> > > Regards
> > > TKÃâÃÂ
> > >
> > >
> > >
> > >
> > > ________________________________
> > > From: frank_19_88
> > > To: mailto:DynoMotion%40yahoogroups.com
> > > Sent: Monday, January 28, 2013 11:44 PM
> > > Subject: [DynoMotion] A axis and spindle at same channel
> > >
> > >
> > > ÃâÃÂ
> > > Hi,
> > >
> > > When I activate A axis within kflop with:
> > > DefineCoordSystem(0,-1,1,2);
> > >
> > > And open Mach3 and send gcode:
> > > M3 S100 (spindle start spinning)
> > > Z0
> > > I get an error "buffer starved".(A axis disabled)
> > > If I send:
> > > M5
> > > z0
> > > The z axis move.
> > >
> > > When I change kflop to " DefineCoordSystem(0,-1,1,-1); " and send:
> > > M3 s100 (spindle start spinning)
> > > z0 (z axis moves)
> > >
> > > The A axis and Spindle are the same channel within the Kflop.(2)
> > > Last week it was working fine, but don't know what I did wrong.
> > >
> > > www.hoefon.nl/kflop/turn_xml.xml
> > > www.hoefon.nl/kflop/IntAnaloog.c
> > >
> > > With kind regards,
> > >
> > > Frank
> > >
> >
>
|
|
| Group: DynoMotion |
Message: 6623 |
From: Tom Kerekes |
Date: 1/30/2013 |
| Subject: Re: A axis and spindle at same channel |
Hi Tapio,
That shouldn't be a problem. As long as the Spindle isn't commanded to spin (Jog) then it should be idle and available for coordinated motion use. The basic rule is any axis channel can be driven by either a coordinated motion trajectory, or an independent motion trajectory (Jog, Move, etc...). But not both at the same time.
I don't understand the other issue.
Regards TK
| Group: DynoMotion |
Message: 6625 |
From: frank_19_88 |
Date: 2/1/2013 |
| Subject: Re: A axis and spindle at same channel |
Hi TK and Tapio,
Tapio good that you joined us :)
I tried:
"
case EX_SPINON:
DefineCoordSystem(0,1,2,-1);
case EX_SPINOFF:
DefineCoordSystem(0,1,2,3);
"
And it works good for me!
With kind regards,
Frank
--- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
>
> Hi Tapio,
>
> That shouldn't be a problem. As long as the Spindle isn't commanded to spin (Jog) then it should be idle and available for coordinated motion use. Â The basic rule is any axis channel can be driven by either a coordinated motion trajectory, or an independent motion trajectory (Jog, Move, etc...). Â But not both at the same time.
>
> I don't understand the other issue.
>
> Regards
> TK
>
>
> ________________________________
> From: tapiolarikka
> To: DynoMotion@yahoogroups.com
> Sent: Wednesday, January 30, 2013 3:06 PM
> Subject: [DynoMotion] Re: A axis and spindle at same channel
>
>
> Â
> Hi again,
>
> Having thought this some more I think including/excluding A solves half of the problem i.e. stops spindle movement from generating errors, but how about A movements generating Spindle movent errors?
>
> Should there be definespindle_axis4 with exclude A and undefinespindle with include A? If there is no undefine available then maybe definespindle_axis5.
>
> Also if there is side/sub-spindle or live tool separate m codes with associated user programs for activation would be in order (for ex M32,M42,M52)
>
> Rgds,
> Tapio
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
> >
> > Thanks Tapio,
> >
> > Yes I would think that would work. ÃÂ But because he has a lathe without any Y axis the calls would be
> >
> > to exclude A
> > DefineCoordSystem(0,-1,1,2);
> >
> >
> > to include A
> > DefineCoordSystem(0,-1,1,-1);
> >
> >
> > Regards
> > TK
> >
> >
> > ________________________________
> > From: tapiolarikka
> > To: DynoMotion@yahoogroups.com
> > Sent: Wednesday, January 30, 2013 11:53 AM
> > Subject: [DynoMotion] Re: A axis and spindle at same channel
> >
> >
> > ÃÂ
> >
> >
> > Hi Frank/Tom,
> >
> > I hope you don't mind me jumping in on this, but I have this same thing ahead.
> >
> > I think this could be:
> >
> > In the Spindle.c that you are using:
> >
> > case EX_SPINON:
> > DefineCoordSystem(0,1,2,-1);
> >
> > if (Direction==0)
> > {
> > printf("Spindle CW ON\n");
> > }
> > else if (Direction==1)
> > {
> > printf("Spindle CCW ON\n");
> > }
> > break;
> >
> > case EX_SPINOFF:
> > DefineCoordSystem(0,1,2,3);
> > // add homing routine for A-axis
> > printf("Spindle Stop\n");
> > break;
> > }
> >
> > I can't test the above since I haven't found time to get my
> > KFlop connected.
> >
> > I hope Tom corrects me if I'm wrong about this.
> >
> > Rgds,
> > Tapio
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
> > >
> > > Hi Frank,
> > > ÃâÃÂ
> > > I don't really follow most of that.
> > > ÃâÃÂ
> > > Normally your Spindle C program would handle all the functionality without the need for CBasic M3 M4 M5 programs.
> > > ÃâÃÂ
> > > I don't understand why/where the Move(2,2000) Move(2,0) is needed.ÃâÃÂ
> > > ÃâÃÂ
> > > Use the DefineCoordSystem command to includ/exclud the A axis.
> > > ÃâÃÂ
> > > Regards
> > > TK
> > >
> > >
> > > ________________________________
> > > From: frank_19_88
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Wednesday, January 30, 2013 5:52 AM
> > > Subject: [DynoMotion] Re: A axis and spindle at same channel
> > >
> > > ÃâÃÂ
> > > Hi TK,
> > >
> > > I replaced the "spindle program" with "notify.c"
> > > At the visual basic part(of mach3) m3,m4 & m5 I added a notify function.
> > >
> > > At the notify I only used 'Move(2,1000)' or 'Move(2,0)';
> > >
> > > Do I have to run the sample "spindle program.c" also with mach3?
> > > Or can I add the "exclude/include A" commands to my "notify.c" (what are the commands?)
> > >
> > > I need the A command because I want to be able to turn the spindle head 180 deg. ( G92 A0, G1 A180 )
> > >
> > > At the moment I can't send the "*.c" programs but I will do it as soon as posible.
> > >
> > > With kind regards,
> > >
> > > Frank
> > >
> > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes wrote:
> > > >
> > > > Hi Frank,
> > > >
> > > > A Spindle has to be configured as an axis and included in the Coordinated Motion System or as a "normal" Spindle and excluded from the Coordinated Motion system.
> > > >
> > > > In example #1 you configure the Spindle as an axis but then command it spinning so you get an error when you do a coordinated motion.ÃÆ'ââ¬Å¡ÃâàNote a G1Z0 actually moves all X,Y, and A axes.
> > > >
> > > > In example #2 the Spindle is not part of the coordinated motion so when you move X and Z there is no problem.
> > > >
> > > > We need to have a means of determining which mode you are in.ÃÆ'ââ¬Å¡ÃâàOne way would be to explicitly switch modes with something two Special MCodes that would Notify KFLOP to switch modes.
> > > >
> > > > But maybe you are using Spindle on and off to switch modes (M3,M4,M5).ÃÆ'ââ¬Å¡ÃâàM3 and M4 would automatically exclude A from the coordinate system.ÃÆ'ââ¬Å¡ÃâàAnd M5 could automatically include it.
> > > >
> > > > You forgot to include your C:\Mach3\Kmotion\SpindleMach3DAC.c and C:\Mach3\Kmotion\NotifyMach3Start.c programs so we can see what you are trying to do.
> > > >
> > > > HTH
> > > > Regards
> > > > TKÃÆ'ââ¬Å¡ÃâÃÂ
> > > >
> > > >
> > > >
> > > >
> > > > ________________________________
> > > > From: frank_19_88
> > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > Sent: Monday, January 28, 2013 11:44 PM
> > > > Subject: [DynoMotion] A axis and spindle at same channel
> > > >
> > > >
> > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > Hi,
> > > >
> > > > When I activate A axis within kflop with:
> > > > DefineCoordSystem(0,-1,1,2);
> > > >
> > > > And open Mach3 and send gcode:
> > > > M3 S100 (spindle start spinning)
> > > > Z0
> > > > I get an error "buffer starved".(A axis disabled)
> > > > If I send:
> > > > M5
> > > > z0
> > > > The z axis move.
> > > >
> > > > When I change kflop to " DefineCoordSystem(0,-1,1,-1); " and send:
> > > > M3 s100 (spindle start spinning)
> > > > z0 (z axis moves)
> > > >
> > > > The A axis and Spindle are the same channel within the Kflop.(2)
> > > > Last week it was working fine, but don't know what I did wrong.
> > > >
> > > > www.hoefon.nl/kflop/turn_xml.xml
> > > > www.hoefon.nl/kflop/IntAnaloog.c
> > > >
> > > > With kind regards,
> > > >
> > > > Frank
> > > >
> > >
> >
>
|
|
| Group: DynoMotion |
Message: 6627 |
From: tapiolarikka |
Date: 2/1/2013 |
| Subject: Re: A axis and spindle at same channel |
Hi Frank,
Great to hear it works. As I wrote I have personal interest on this topic.
I don't know if you need it but if you decide to add homing for spindle please report back how it works out.
Rgds,
Tapio
--- In DynoMotion@yahoogroups.com, "frank_19_88" wrote:
>
> Hi TK and Tapio,
>
> Tapio good that you joined us :)
>
> I tried:
> "
> case EX_SPINON:
> DefineCoordSystem(0,1,2,-1);
>
> case EX_SPINOFF:
> DefineCoordSystem(0,1,2,3);
> "
> And it works good for me!
>
> With kind regards,
>
> Frank
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
> >
> > Hi Tapio,
> >
> > That shouldn't be a problem. As long as the Spindle isn't commanded to spin (Jog) then it should be idle and available for coordinated motion use. Â The basic rule is any axis channel can be driven by either a coordinated motion trajectory, or an independent motion trajectory (Jog, Move, etc...). Â But not both at the same time.
> >
> > I don't understand the other issue.
> >
> > Regards
> > TK
> >
> >
> > ________________________________
> > From: tapiolarikka
> > To: DynoMotion@yahoogroups.com
> > Sent: Wednesday, January 30, 2013 3:06 PM
> > Subject: [DynoMotion] Re: A axis and spindle at same channel
> >
> >
> > Â
> > Hi again,
> >
> > Having thought this some more I think including/excluding A solves half of the problem i.e. stops spindle movement from generating errors, but how about A movements generating Spindle movent errors?
> >
> > Should there be definespindle_axis4 with exclude A and undefinespindle with include A? If there is no undefine available then maybe definespindle_axis5.
> >
> > Also if there is side/sub-spindle or live tool separate m codes with associated user programs for activation would be in order (for ex M32,M42,M52)
> >
> > Rgds,
> > Tapio
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
> > >
> > > Thanks Tapio,
> > >
> > > Yes I would think that would work. ÃÂ But because he has a lathe without any Y axis the calls would be
> > >
> > > to exclude A
> > > DefineCoordSystem(0,-1,1,2);
> > >
> > >
> > > to include A
> > > DefineCoordSystem(0,-1,1,-1);
> > >
> > >
> > > Regards
> > > TK
> > >
> > >
> > > ________________________________
> > > From: tapiolarikka
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Wednesday, January 30, 2013 11:53 AM
> > > Subject: [DynoMotion] Re: A axis and spindle at same channel
> > >
> > >
> > > ÃÂ
> > >
> > >
> > > Hi Frank/Tom,
> > >
> > > I hope you don't mind me jumping in on this, but I have this same thing ahead.
> > >
> > > I think this could be:
> > >
> > > In the Spindle.c that you are using:
> > >
> > > case EX_SPINON:
> > > DefineCoordSystem(0,1,2,-1);
> > >
> > > if (Direction==0)
> > > {
> > > printf("Spindle CW ON\n");
> > > }
> > > else if (Direction==1)
> > > {
> > > printf("Spindle CCW ON\n");
> > > }
> > > break;
> > >
> > > case EX_SPINOFF:
> > > DefineCoordSystem(0,1,2,3);
> > > // add homing routine for A-axis
> > > printf("Spindle Stop\n");
> > > break;
> > > }
> > >
> > > I can't test the above since I haven't found time to get my
> > > KFlop connected.
> > >
> > > I hope Tom corrects me if I'm wrong about this.
> > >
> > > Rgds,
> > > Tapio
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
> > > >
> > > > Hi Frank,
> > > > ÃâÃÂ
> > > > I don't really follow most of that.
> > > > ÃâÃÂ
> > > > Normally your Spindle C program would handle all the functionality without the need for CBasic M3 M4 M5 programs.
> > > > ÃâÃÂ
> > > > I don't understand why/where the Move(2,2000) Move(2,0) is needed.ÃâÃÂ
> > > > ÃâÃÂ
> > > > Use the DefineCoordSystem command to includ/exclud the A axis.
> > > > ÃâÃÂ
> > > > Regards
> > > > TK
> > > >
> > > >
> > > > ________________________________
> > > > From: frank_19_88
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Wednesday, January 30, 2013 5:52 AM
> > > > Subject: [DynoMotion] Re: A axis and spindle at same channel
> > > >
> > > > ÃâÃÂ
> > > > Hi TK,
> > > >
> > > > I replaced the "spindle program" with "notify.c"
> > > > At the visual basic part(of mach3) m3,m4 & m5 I added a notify function.
> > > >
> > > > At the notify I only used 'Move(2,1000)' or 'Move(2,0)';
> > > >
> > > > Do I have to run the sample "spindle program.c" also with mach3?
> > > > Or can I add the "exclude/include A" commands to my "notify.c" (what are the commands?)
> > > >
> > > > I need the A command because I want to be able to turn the spindle head 180 deg. ( G92 A0, G1 A180 )
> > > >
> > > > At the moment I can't send the "*.c" programs but I will do it as soon as posible.
> > > >
> > > > With kind regards,
> > > >
> > > > Frank
> > > >
> > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes wrote:
> > > > >
> > > > > Hi Frank,
> > > > >
> > > > > A Spindle has to be configured as an axis and included in the Coordinated Motion System or as a "normal" Spindle and excluded from the Coordinated Motion system.
> > > > >
> > > > > In example #1 you configure the Spindle as an axis but then command it spinning so you get an error when you do a coordinated motion.ÃÆ'ââ¬Å¡ÃâàNote a G1Z0 actually moves all X,Y, and A axes.
> > > > >
> > > > > In example #2 the Spindle is not part of the coordinated motion so when you move X and Z there is no problem.
> > > > >
> > > > > We need to have a means of determining which mode you are in.ÃÆ'ââ¬Å¡ÃâàOne way would be to explicitly switch modes with something two Special MCodes that would Notify KFLOP to switch modes.
> > > > >
> > > > > But maybe you are using Spindle on and off to switch modes (M3,M4,M5).ÃÆ'ââ¬Å¡ÃâàM3 and M4 would automatically exclude A from the coordinate system.ÃÆ'ââ¬Å¡ÃâàAnd M5 could automatically include it.
> > > > >
> > > > > You forgot to include your C:\Mach3\Kmotion\SpindleMach3DAC.c and C:\Mach3\Kmotion\NotifyMach3Start.c programs so we can see what you are trying to do.
> > > > >
> > > > > HTH
> > > > > Regards
> > > > > TKÃÆ'ââ¬Å¡ÃâÃÂ
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: frank_19_88
> > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > Sent: Monday, January 28, 2013 11:44 PM
> > > > > Subject: [DynoMotion] A axis and spindle at same channel
> > > > >
> > > > >
> > > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > Hi,
> > > > >
> > > > > When I activate A axis within kflop with:
> > > > > DefineCoordSystem(0,-1,1,2);
> > > > >
> > > > > And open Mach3 and send gcode:
> > > > > M3 S100 (spindle start spinning)
> > > > > Z0
> > > > > I get an error "buffer starved".(A axis disabled)
> > > > > If I send:
> > > > > M5
> > > > > z0
> > > > > The z axis move.
> > > > >
> > > > > When I change kflop to " DefineCoordSystem(0,-1,1,-1); " and send:
> > > > > M3 s100 (spindle start spinning)
> > > > > z0 (z axis moves)
> > > > >
> > > > > The A axis and Spindle are the same channel within the Kflop.(2)
> > > > > Last week it was working fine, but don't know what I did wrong.
> > > > >
> > > > > www.hoefon.nl/kflop/turn_xml.xml
> > > > > www.hoefon.nl/kflop/IntAnaloog.c
> > > > >
> > > > > With kind regards,
> > > > >
> > > > > Frank
> > > > >
> > > >
> > >
> >
>
|
|
| Group: DynoMotion |
Message: 6638 |
From: frank_19_88 |
Date: 2/3/2013 |
| Subject: Re: A axis and spindle at same channel |
Hi Tapio,
If I use the gcode comands in manual mode it works good, but in automatic mode it fail some times.(A axis disabled)(mach3)
But I think I can fix it like:
"
case EX_SPINOFF:
Jog(3,0);
CheckDone(3); //wait for axis, spindle speed = 0
DefineCoordSystem(0,1,2,3);
// add homing routine for A-axis
printf("Spindle Stop\n");
break;
}
"
Also g92 a0 don't work in automatic mode (mach3).
I will try:
"
G1 G91 A180
G90 (switch back to absolute if necessary)
"
You can home the spindle axis with the same homing program as x axis.
I do use it and works good.
With kind regards,
Frank
--- In DynoMotion@yahoogroups.com, "tapiolarikka" wrote:
>
>
> Hi Frank,
>
> Great to hear it works. As I wrote I have personal interest on this topic.
>
> I don't know if you need it but if you decide to add homing for spindle please report back how it works out.
>
> Rgds,
> Tapio
>
>
> --- In DynoMotion@yahoogroups.com, "frank_19_88" wrote:
> >
> > Hi TK and Tapio,
> >
> > Tapio good that you joined us :)
> >
> > I tried:
> > "
> > case EX_SPINON:
> > DefineCoordSystem(0,1,2,-1);
> >
> > case EX_SPINOFF:
> > DefineCoordSystem(0,1,2,3);
> > "
> > And it works good for me!
> >
> > With kind regards,
> >
> > Frank
> >
> > --- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
> > >
> > > Hi Tapio,
> > >
> > > That shouldn't be a problem. As long as the Spindle isn't commanded to spin (Jog) then it should be idle and available for coordinated motion use. Â The basic rule is any axis channel can be driven by either a coordinated motion trajectory, or an independent motion trajectory (Jog, Move, etc...). Â But not both at the same time.
> > >
> > > I don't understand the other issue.
> > >
> > > Regards
> > > TK
> > >
> > >
> > > ________________________________
> > > From: tapiolarikka
> > > To: DynoMotion@yahoogroups.com
> > > Sent: Wednesday, January 30, 2013 3:06 PM
> > > Subject: [DynoMotion] Re: A axis and spindle at same channel
> > >
> > >
> > > Â
> > > Hi again,
> > >
> > > Having thought this some more I think including/excluding A solves half of the problem i.e. stops spindle movement from generating errors, but how about A movements generating Spindle movent errors?
> > >
> > > Should there be definespindle_axis4 with exclude A and undefinespindle with include A? If there is no undefine available then maybe definespindle_axis5.
> > >
> > > Also if there is side/sub-spindle or live tool separate m codes with associated user programs for activation would be in order (for ex M32,M42,M52)
> > >
> > > Rgds,
> > > Tapio
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
> > > >
> > > > Thanks Tapio,
> > > >
> > > > Yes I would think that would work. ÃÂ But because he has a lathe without any Y axis the calls would be
> > > >
> > > > to exclude A
> > > > DefineCoordSystem(0,-1,1,2);
> > > >
> > > >
> > > > to include A
> > > > DefineCoordSystem(0,-1,1,-1);
> > > >
> > > >
> > > > Regards
> > > > TK
> > > >
> > > >
> > > > ________________________________
> > > > From: tapiolarikka
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Wednesday, January 30, 2013 11:53 AM
> > > > Subject: [DynoMotion] Re: A axis and spindle at same channel
> > > >
> > > >
> > > > ÃÂ
> > > >
> > > >
> > > > Hi Frank/Tom,
> > > >
> > > > I hope you don't mind me jumping in on this, but I have this same thing ahead.
> > > >
> > > > I think this could be:
> > > >
> > > > In the Spindle.c that you are using:
> > > >
> > > > case EX_SPINON:
> > > > DefineCoordSystem(0,1,2,-1);
> > > >
> > > > if (Direction==0)
> > > > {
> > > > printf("Spindle CW ON\n");
> > > > }
> > > > else if (Direction==1)
> > > > {
> > > > printf("Spindle CCW ON\n");
> > > > }
> > > > break;
> > > >
> > > > case EX_SPINOFF:
> > > > DefineCoordSystem(0,1,2,3);
> > > > // add homing routine for A-axis
> > > > printf("Spindle Stop\n");
> > > > break;
> > > > }
> > > >
> > > > I can't test the above since I haven't found time to get my
> > > > KFlop connected.
> > > >
> > > > I hope Tom corrects me if I'm wrong about this.
> > > >
> > > > Rgds,
> > > > Tapio
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
> > > > >
> > > > > Hi Frank,
> > > > > ÃâÃÂ
> > > > > I don't really follow most of that.
> > > > > ÃâÃÂ
> > > > > Normally your Spindle C program would handle all the functionality without the need for CBasic M3 M4 M5 programs.
> > > > > ÃâÃÂ
> > > > > I don't understand why/where the Move(2,2000) Move(2,0) is needed.ÃâÃÂ
> > > > > ÃâÃÂ
> > > > > Use the DefineCoordSystem command to includ/exclud the A axis.
> > > > > ÃâÃÂ
> > > > > Regards
> > > > > TK
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: frank_19_88
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Wednesday, January 30, 2013 5:52 AM
> > > > > Subject: [DynoMotion] Re: A axis and spindle at same channel
> > > > >
> > > > > ÃâÃÂ
> > > > > Hi TK,
> > > > >
> > > > > I replaced the "spindle program" with "notify.c"
> > > > > At the visual basic part(of mach3) m3,m4 & m5 I added a notify function.
> > > > >
> > > > > At the notify I only used 'Move(2,1000)' or 'Move(2,0)';
> > > > >
> > > > > Do I have to run the sample "spindle program.c" also with mach3?
> > > > > Or can I add the "exclude/include A" commands to my "notify.c" (what are the commands?)
> > > > >
> > > > > I need the A command because I want to be able to turn the spindle head 180 deg. ( G92 A0, G1 A180 )
> > > > >
> > > > > At the moment I can't send the "*.c" programs but I will do it as soon as posible.
> > > > >
> > > > > With kind regards,
> > > > >
> > > > > Frank
> > > > >
> > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes wrote:
> > > > > >
> > > > > > Hi Frank,
> > > > > >
> > > > > > A Spindle has to be configured as an axis and included in the Coordinated Motion System or as a "normal" Spindle and excluded from the Coordinated Motion system.
> > > > > >
> > > > > > In example #1 you configure the Spindle as an axis but then command it spinning so you get an error when you do a coordinated motion.ÃÆ'ââ¬Å¡ÃâàNote a G1Z0 actually moves all X,Y, and A axes.
> > > > > >
> > > > > > In example #2 the Spindle is not part of the coordinated motion so when you move X and Z there is no problem.
> > > > > >
> > > > > > We need to have a means of determining which mode you are in.ÃÆ'ââ¬Å¡ÃâàOne way would be to explicitly switch modes with something two Special MCodes that would Notify KFLOP to switch modes.
> > > > > >
> > > > > > But maybe you are using Spindle on and off to switch modes (M3,M4,M5).ÃÆ'ââ¬Å¡ÃâàM3 and M4 would automatically exclude A from the coordinate system.ÃÆ'ââ¬Å¡ÃâàAnd M5 could automatically include it.
> > > > > >
> > > > > > You forgot to include your C:\Mach3\Kmotion\SpindleMach3DAC.c and C:\Mach3\Kmotion\NotifyMach3Start.c programs so we can see what you are trying to do.
> > > > > >
> > > > > > HTH
> > > > > > Regards
> > > > > > TKÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: frank_19_88
> > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > Sent: Monday, January 28, 2013 11:44 PM
> > > > > > Subject: [DynoMotion] A axis and spindle at same channel
> > > > > >
> > > > > >
> > > > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > Hi,
> > > > > >
> > > > > > When I activate A axis within kflop with:
> > > > > > DefineCoordSystem(0,-1,1,2);
> > > > > >
> > > > > > And open Mach3 and send gcode:
> > > > > > M3 S100 (spindle start spinning)
> > > > > > Z0
> > > > > > I get an error "buffer starved".(A axis disabled)
> > > > > > If I send:
> > > > > > M5
> > > > > > z0
> > > > > > The z axis move.
> > > > > >
> > > > > > When I change kflop to " DefineCoordSystem(0,-1,1,-1); " and send:
> > > > > > M3 s100 (spindle start spinning)
> > > > > > z0 (z axis moves)
> > > > > >
> > > > > > The A axis and Spindle are the same channel within the Kflop.(2)
> > > > > > Last week it was working fine, but don't know what I did wrong.
> > > > > >
> > > > > > www.hoefon.nl/kflop/turn_xml.xml
> > > > > > www.hoefon.nl/kflop/IntAnaloog.c
> > > > > >
> > > > > > With kind regards,
> > > > > >
> > > > > > Frank
> > > > > >
> > > > >
> > > >
> > >
> >
>
|
|
| Group: DynoMotion |
Message: 6640 |
From: Tom Kerekes |
Date: 2/3/2013 |
| Subject: Re: A axis and spindle at same channel |
Hi Frank, I don't really follow that, but I did want to point out a bug. To wait for the spindle to stop you need a wait loop that keeps looping while the axis is not done. So change: CheckDone(3); //wait for axis, spindle speed = 0 to while (!CheckDone(3)) ; //wait for axis, spindle speed = 0
Regards TK
| Group: DynoMotion |
Message: 6699 |
From: tapiolarikka |
Date: 2/11/2013 |
| Subject: Re: A axis and spindle at same channel |
Hi Tom!
How does Kflop handle the position of A-axis when decoupled/coupled
with coordinate system i.e. is it enough to orientate/home the axis in reference to machine frame once on power up or does it have to be done every time when returning from spindle to coordinated axis?.
I'm asking this because I have C5 collet chuck that is spring closed and opened pneumatic lever, so I need to retain the orientation to frame.
Is there any difference in Kanalog JP1 and JP2 encoder inputs other than JP2 used for encoders being not available for GPIO?
I have need for 4 axes + servo/spindle so total of 5 encoders, and I'd like to use the Z-pulses for homing.
Rgds,
Tapio
--- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
>
> Hi Frank,
>
> I don't really follow that, but I did want to point out a bug.
>
> To wait for the spindle to stop you need a wait loop that keeps looping while the axis is not done. So change:
>
> CheckDone(3); //wait for axis, spindle speed = 0
>
> to
>
> while (!CheckDone(3)) ; //wait for axis, spindle speed = 0
>
> Regards
> TK
>
>
>
> ________________________________
> From: frank_19_88
> To: DynoMotion@yahoogroups.com
> Sent: Sunday, February 3, 2013 12:07 PM
> Subject: [DynoMotion] Re: A axis and spindle at same channel
>
>
> Â
> Hi Tapio,
>
> If I use the gcode comands in manual mode it works good, but in automatic mode it fail some times.(A axis disabled)(mach3)
>
> But I think I can fix it like:
> "
> case EX_SPINOFF:
> Jog(3,0);
> CheckDone(3); //wait for axis, spindle speed = 0
> DefineCoordSystem(0,1,2,3);
> // add homing routine for A-axis
> printf("Spindle Stop\n");
> break;
> }
> "
>
> Also g92 a0 don't work in automatic mode (mach3).
> I will try:
> "
> G1 G91 A180
> G90 (switch back to absolute if necessary)
> "
>
> You can home the spindle axis with the same homing program as x axis.
> I do use it and works good.
>
> With kind regards,
>
> Frank
>
> --- In DynoMotion@yahoogroups.com, "tapiolarikka" wrote:
> >
> >
> > Hi Frank,
> >
> > Great to hear it works. As I wrote I have personal interest on this topic.
> >
> > I don't know if you need it but if you decide to add homing for spindle please report back how it works out.
> >
> > Rgds,
> > Tapio
> >
> >
> > --- In DynoMotion@yahoogroups.com, "frank_19_88" wrote:
> > >
> > > Hi TK and Tapio,
> > >
> > > Tapio good that you joined us :)
> > >
> > > I tried:
> > > "
> > > case EX_SPINON:
> > > DefineCoordSystem(0,1,2,-1);
> > >
> > > case EX_SPINOFF:
> > > DefineCoordSystem(0,1,2,3);
> > > "
> > > And it works good for me!
> > >
> > > With kind regards,
> > >
> > > Frank
> > >
> > > --- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
> > > >
> > > > Hi Tapio,
> > > >
> > > > That shouldn't be a problem. As long as the Spindle isn't commanded to spin (Jog) then it should be idle and available for coordinated motion use. ÃÂ The basic rule is any axis channel can be driven by either a coordinated motion trajectory, or an independent motion trajectory (Jog, Move, etc...). ÃÂ But not both at the same time.
> > > >
> > > > I don't understand the other issue.
> > > >
> > > > Regards
> > > > TK
> > > >
> > > >
> > > > ________________________________
> > > > From: tapiolarikka
> > > > To: DynoMotion@yahoogroups.com
> > > > Sent: Wednesday, January 30, 2013 3:06 PM
> > > > Subject: [DynoMotion] Re: A axis and spindle at same channel
> > > >
> > > >
> > > > ÃÂ
> > > > Hi again,
> > > >
> > > > Having thought this some more I think including/excluding A solves half of the problem i.e. stops spindle movement from generating errors, but how about A movements generating Spindle movent errors?
> > > >
> > > > Should there be definespindle_axis4 with exclude A and undefinespindle with include A? If there is no undefine available then maybe definespindle_axis5.
> > > >
> > > > Also if there is side/sub-spindle or live tool separate m codes with associated user programs for activation would be in order (for ex M32,M42,M52)
> > > >
> > > > Rgds,
> > > > Tapio
> > > >
> > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
> > > > >
> > > > > Thanks Tapio,
> > > > >
> > > > > Yes I would think that would work. ÃâàBut because he has a lathe without any Y axis the calls would be
> > > > >
> > > > > to exclude A
> > > > > DefineCoordSystem(0,-1,1,2);
> > > > >
> > > > >
> > > > > to include A
> > > > > DefineCoordSystem(0,-1,1,-1);
> > > > >
> > > > >
> > > > > Regards
> > > > > TK
> > > > >
> > > > >
> > > > > ________________________________
> > > > > From: tapiolarikka
> > > > > To: DynoMotion@yahoogroups.com
> > > > > Sent: Wednesday, January 30, 2013 11:53 AM
> > > > > Subject: [DynoMotion] Re: A axis and spindle at same channel
> > > > >
> > > > >
> > > > > ÃâÃÂ
> > > > >
> > > > >
> > > > > Hi Frank/Tom,
> > > > >
> > > > > I hope you don't mind me jumping in on this, but I have this same thing ahead.
> > > > >
> > > > > I think this could be:
> > > > >
> > > > > In the Spindle.c that you are using:
> > > > >
> > > > > case EX_SPINON:
> > > > > DefineCoordSystem(0,1,2,-1);
> > > > >
> > > > > if (Direction==0)
> > > > > {
> > > > > printf("Spindle CW ON\n");
> > > > > }
> > > > > else if (Direction==1)
> > > > > {
> > > > > printf("Spindle CCW ON\n");
> > > > > }
> > > > > break;
> > > > >
> > > > > case EX_SPINOFF:
> > > > > DefineCoordSystem(0,1,2,3);
> > > > > // add homing routine for A-axis
> > > > > printf("Spindle Stop\n");
> > > > > break;
> > > > > }
> > > > >
> > > > > I can't test the above since I haven't found time to get my
> > > > > KFlop connected.
> > > > >
> > > > > I hope Tom corrects me if I'm wrong about this.
> > > > >
> > > > > Rgds,
> > > > > Tapio
> > > > >
> > > > > --- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
> > > > > >
> > > > > > Hi Frank,
> > > > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > I don't really follow most of that.
> > > > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > Normally your Spindle C program would handle all the functionality without the need for CBasic M3 M4 M5 programs.
> > > > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > I don't understand why/where the Move(2,2000) Move(2,0) is needed.ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > Use the DefineCoordSystem command to includ/exclud the A axis.
> > > > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > Regards
> > > > > > TK
> > > > > >
> > > > > >
> > > > > > ________________________________
> > > > > > From: frank_19_88
> > > > > > To: DynoMotion@yahoogroups.com
> > > > > > Sent: Wednesday, January 30, 2013 5:52 AM
> > > > > > Subject: [DynoMotion] Re: A axis and spindle at same channel
> > > > > >
> > > > > > ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > Hi TK,
> > > > > >
> > > > > > I replaced the "spindle program" with "notify.c"
> > > > > > At the visual basic part(of mach3) m3,m4 & m5 I added a notify function.
> > > > > >
> > > > > > At the notify I only used 'Move(2,1000)' or 'Move(2,0)';
> > > > > >
> > > > > > Do I have to run the sample "spindle program.c" also with mach3?
> > > > > > Or can I add the "exclude/include A" commands to my "notify.c" (what are the commands?)
> > > > > >
> > > > > > I need the A command because I want to be able to turn the spindle head 180 deg. ( G92 A0, G1 A180 )
> > > > > >
> > > > > > At the moment I can't send the "*.c" programs but I will do it as soon as posible.
> > > > > >
> > > > > > With kind regards,
> > > > > >
> > > > > > Frank
> > > > > >
> > > > > > --- In mailto:DynoMotion%40yahoogroups.com, Tom Kerekes wrote:
> > > > > > >
> > > > > > > Hi Frank,
> > > > > > >
> > > > > > > A Spindle has to be configured as an axis and included in the Coordinated Motion System or as a "normal" Spindle and excluded from the Coordinated Motion system.
> > > > > > >
> > > > > > > In example #1 you configure the Spindle as an axis but then command it spinning so you get an error when you do a coordinated motion.ÃÆ'Ã'âââ¬Ã
Â¡ÃÆ'ââ¬Å¡ÃâàNote a G1Z0 actually moves all X,Y, and A axes.
> > > > > > >
> > > > > > > In example #2 the Spindle is not part of the coordinated motion so when you move X and Z there is no problem.
> > > > > > >
> > > > > > > We need to have a means of determining which mode you are in.ÃÆ'Ã'âââ¬Ã
Â¡ÃÆ'ââ¬Å¡ÃâàOne way would be to explicitly switch modes with something two Special MCodes that would Notify KFLOP to switch modes.
> > > > > > >
> > > > > > > But maybe you are using Spindle on and off to switch modes (M3,M4,M5).ÃÆ'Ã'âââ¬Ã
Â¡ÃÆ'ââ¬Å¡ÃâàM3 and M4 would automatically exclude A from the coordinate system.ÃÆ'Ã'âââ¬Ã
Â¡ÃÆ'ââ¬Å¡ÃâàAnd M5 could automatically include it.
> > > > > > >
> > > > > > > You forgot to include your C:\Mach3\Kmotion\SpindleMach3DAC.c and C:\Mach3\Kmotion\NotifyMach3Start.c programs so we can see what you are trying to do.
> > > > > > >
> > > > > > > HTH
> > > > > > > Regards
> > > > > > > TKÃÆ'Ã'âââ¬Ã
Â¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ________________________________
> > > > > > > From: frank_19_88
> > > > > > > To: mailto:DynoMotion%40yahoogroups.com
> > > > > > > Sent: Monday, January 28, 2013 11:44 PM
> > > > > > > Subject: [DynoMotion] A axis and spindle at same channel
> > > > > > >
> > > > > > >
> > > > > > > ÃÆ'Ã'âââ¬Ã
Â¡ÃÆ'ââ¬Å¡ÃâÃÂ
> > > > > > > Hi,
> > > > > > >
> > > > > > > When I activate A axis within kflop with:
> > > > > > > DefineCoordSystem(0,-1,1,2);
> > > > > > >
> > > > > > > And open Mach3 and send gcode:
> > > > > > > M3 S100 (spindle start spinning)
> > > > > > > Z0
> > > > > > > I get an error "buffer starved".(A axis disabled)
> > > > > > > If I send:
> > > > > > > M5
> > > > > > > z0
> > > > > > > The z axis move.
> > > > > > >
> > > > > > > When I change kflop to " DefineCoordSystem(0,-1,1,-1); " and send:
> > > > > > > M3 s100 (spindle start spinning)
> > > > > > > z0 (z axis moves)
> > > > > > >
> > > > > > > The A axis and Spindle are the same channel within the Kflop.(2)
> > > > > > > Last week it was working fine, but don't know what I did wrong.
> > > > > > >
> > > > > > > www.hoefon.nl/kflop/turn_xml.xml
> > > > > > > www.hoefon.nl/kflop/IntAnaloog.c
> > > > > > >
> > > > > > > With kind regards,
> > > > > > >
> > > > > > > Frank
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
|
|
| Group: DynoMotion |
Message: 6700 |
From: Tom Kerekes |
Date: 2/11/2013 |
| Subject: Re: A axis and spindle at same channel |
Hi Tapio:
There is no loss of A position when including/excluding it from the Coordinated System.
No there is no difference between Kanalog JP1 and JP2 other than JP1 maps to KFLOP encoders 0-3 and JP2 maps to 4-7.
The 16 differential inputs should be enough. 5 Axes x 3 differential signals each (A,B,Z) = 15 differential inputs required.
Zs can be connected to any unused A or B input.
HTH
Regards
TK
| Group: DynoMotion |
Message: 6701 |
From: Tom Kerekes |
Date: 2/11/2013 |
| Subject: Re: A axis and spindle at same channel |
Hi Tapio:
There is no loss of A position when including/excluding it from the Coordinated System.
No there is no difference between Kanalog JP1 and JP2 other than JP1 maps to KFLOP encoders 0-3 and JP2 maps to 4-7.
The 16 differential inputs should be enough. 5 Axes x 3 differential signals each (A,B,Z) = 15 differential inputs required.
Zs can be connected to any unused A or B input.
HTH
Regards
TK
| | | | | | | | | | | | | |